package com.prs.crm.domain.oa;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;

/**
 * 通知收藏类别
 * @author zhoupeng 2012-3-29
 *
 */
@Entity
@Table(name="oa_notice_collect_type")
public class NoticeCollectType extends BaseEntity{
private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	private String name;
	private String remark;
	@OneToMany(fetch=FetchType.LAZY,mappedBy="type")
	private Set<NoticeCollect> collects;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Set<NoticeCollect> getCollects() {
		return collects;
	}
	public void setCollects(Set<NoticeCollect> collects) {
		this.collects = collects;
	}
	
}
